<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/9
 * Time: 14:54
 */

namespace App\Http\Model;


class MemberModel extends CommonModel {

    protected $table      = 'members';
    protected $primaryKey = 'MbId';
    protected $fillable   = ['MbUserName','MbPwd','MbPhone'];


    public function __construct(array $attributes=[]) {
        parent::__construct($attributes);
    }

    public function addNewData($phone,$userName,$pwd) {
        $this->MbUserName = $userName;
        $this->MbPwd      = $pwd;
        $this->MbPhone    = $phone;
        return $this->save();
    }


}